const webpack = require('webpack');

module.exports = {  
	devServer: {
		//关闭esling代码检测
		overlay:{
			warnning:false,
			errors:false
		},
		//代理服务器解决跨域问题
		proxy: {
			'/api': {
				target: 'https://api.binstd.com/recipe/',
				changeOrigin: true,  //执行跨域
				ws: true,
				secure: false,
				pathRewrite: {
					'^/api': ''
				}
			}
		}
	},
	lintOnSave:false,
	configureWebpack: {   //使用bootstrap需要配置如下内容，并在main.js中引入
		plugins: [
			new webpack.ProvidePlugin({
				$:'jquery',
				jQuery: 'jquery'
			})
		]
	}
}